Linux Journal June 2015 by Linux Journal

Linux Journal June 2015 by Linux Journal

Author:Linux Journal
Language: eng
Format: mobi, epub
Tags: CERN Program Library, PAW, 3D Printing, Workstation, Open Reader API, Android, FOSS, Vienna, Network, tshark, Python, Records, Traffic, Unclouded, Ultimaker, Weave, C, Media Center, Database, Analysis, System, FORTRAN, Docker, Django, Physics, Multi-Container, AtoMic ToolKit, CERN, CERNLIB, Linux, Permissions, RSS
Publisher: Belltown Media
Published: 2015-05-28T07:00:00+00:00


Figure 2. Don’t judge me on the shows my family watches!

Of course, my screenshot shows my Plex server after it has been configured. The first time you visit the server, you’ll need to configure it for your own system. Still, it should be that easy to get the container running.

Managing Containers

Much like running:

sudo docker images

shows you the images on your system, you can see the containers on your system by typing:

sudo docker ps -a

If you leave off the -a, it will show you only running containers on your system. Once you see the containers that are running, you can start, stop, restart or destroy (delete) them using the docker command. So running:

sudo docker restart CONTAINER_ID

will restart the container specified by the ID. You also can specify the container you want to manipulate by referring to its funny name listed in the “NAMES” column of the ps -a results. For instance, mine is called “sad_babbage”, but yours will be some other two-word name.

Where to Go from Here?

There are tons more things you can do with Docker. You can create custom images. You can build your own images from scratch. You can automate the creation and destruction of containers on the fly. In this article, you probably learned just enough to understand what Docker is and how to use it. Hopefully you’re inspired to learn more.

If you prefer not to use the command line to deal with images and containers, there also are a few GUI tools. Docker has an official GUI called Kitematic that works about like you’d expect a GUI to work. You can manipulate images and containers by pointing and clicking instead of typing on the command line.

However you choose to use Docker, the important part is not to be afraid of the technology. Even if you never plan to use it in production, I urge you to play with it a bit. Linux containers and Docker specifically are really efficient ways to utilize your resources. Plus, it’s really fun!■



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.